<?php

require_once("../../controllers/init.php");
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");

$personid = 0;
if (isset($_POST['personid']))
	$personid = $_POST['personid'];

$addressid = 0;
if (isset($_POST['addressid']))
	$addressid = $_POST['addressid'];

$person = new Person($personid);
$person->removeAddress($addressid);

?>